package com.example.service;

import com.example.dao.ChapterDTO;
import com.example.entity.Chapter;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 */
public interface ChapterService extends IService<Chapter> {

    //根据课程id删除章节
    public void deleteChapterByCourseId(String id) ;

    // 通过章节id删除章节
    boolean removeChapterId(String chapterId);

    //通过课程id获取课程小结
    List<ChapterDTO> getChapterVideoListByCourseId(String cid);
}
